package com.xyy.saas.payment.cores.enums;


/**
 * 三方聚合交易类型
 */
public enum JDPayTradeTypeEnum {

    AGGRE("AGGRE", "聚合收银台"),
    AGGRE_WX("AGGRE_WX", "微信支付API"),
    AGGRE_JD("AGGRE_JD", "京东支付API"),
    AGGRE_ALI("AGGRE_ALI", "支付宝支付API"),
    AGGRE_YSF("AGGRE_YSF", "云闪付API"),
    ;

    private String code;
    private String desc;

    JDPayTradeTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static JDPayTradeTypeEnum getEnum(String code) {
        for (JDPayTradeTypeEnum t : values()) {
            if (t.code.equals(code)) {
                return t;
            }
        }
        throw new IllegalArgumentException("SceneTyepEnum is illegal");
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
